import http from './api.js';

export function cartAdd(body:any){
    return http({
        url: "/api/cart/add",
        method:'post',
        data:body
    });
}
export function cartList(userid:string){
    return http({
        url: "/api/cart/list",
        method:'post',
        data:{userid}
    });
}
export function cartsingleFlag(body:any){
    return http({
        url: "/api/cart/selectone",
        method:'post',
        data:body
    });
}
export function cartFlags(body:any){
    return http({
        url: "/api/cart/selectall",
        method:'post',
        data:body
    });
}
export function cartNum(body:any){
    return http({
        url: "/api/cart/updatenum",
        method:'post',
        data:body
    });
}
export function cartsingleDel(cartid:string){
    return http({
        url: "/api/cart/remove",
        method:'post',
        data:{cartid}
    });
}
export function cartDel(obj:any){
    return http({
        url: "/api/cart/removeall",
        method:'post',
        data:obj
    });
}